﻿using System.Threading.Tasks;
using Jinjia.Approve.Model.Input.JJFlow;
using Jinjia.Approve.Model.VM.JJFlow;

namespace Jinjia.Approve.IService.JJFlow.BPM
{
    public interface IJJFlowBpmXMLService
    {
        /// <summary>
        /// 通过流程模板id获取
        /// </summary>
        /// <param name="template_id"></param>
        /// <returns></returns>
        Task<JJFlowDesignViewModel> GetDegineXMLDetail(int template_id);

        /// <summary>
        /// 流程BPM设计保存
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        Task SaveBPMXML(JJFlowDesignEditModel model);
    }
}